package com.suda.sudaexamsystem.pojo;

/**
 * 记录条目 记录每道题目的相关信息
 */
public class RecordItem {
    private int id;
    // 关联的Record
    private Record record;
    // 关联的问题
    private Question question;
    // 回答
    private String answer;
    // 是否回答正确
    private boolean isCorrect;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Record getRecord() {
        return record;
    }

    public void setRecord(Record record) {
        this.record = record;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public boolean isCorrect() {
        return isCorrect;
    }

    public void setCorrect(boolean correct) {
        isCorrect = correct;
    }

    @Override
    public String toString() {
        return "RecordItem{" +
                "id=" + id +
                ", question=" + question +
                ", answer='" + answer + '\'' +
                ", isCorrect=" + isCorrect +
                '}';
    }
}
